package com.qupeng.demo.kafka.kafkaspringbootstreams.dashboard.model;

import com.qupeng.demo.kafka.kafkaspringbootstreams.common.kafka.streams.CreatingTimestampExtractor;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class AgentCase implements CreatingTimestampExtractor.EventWithTimestamp {
    private String id;
    private String agentId;
    private String status;
    private String createTime; /*yyyy-MM-dd'T'HH:mm:ssZ*/

    public AgentCase(String id, String agentId, String status) {
        this.id = id;
        this.agentId = agentId;
        this.status = status;
    }

    @Override
    public String getTimestamp() {
        return createTime;
    }
}
